<?php

class Theme_Layout extends Engine_Theme_Layout_Abstract {

	function sidebarBlock($content, $header = false) {
		
		// SIDEBAR block WITH header
		if ($header) {
			$format = '
	
				<div class="art-block">
					<div class="art-block-body">
						<div class="art-blockheader">
							<div class="t">
								<!-- block-header -->
									%s
								<!-- /block-header -->
							</div>
						</div>
						<div class="art-blockcontent">
							<div class="art-blockcontent-body">
								<!-- block-content -->
									%s
								<!-- /block-content -->                                    
							<div class="cleared"></div>
							</div>
						</div>
						<div class="cleared"></div>
					</div>
				</div>
			
			';
			
			$return = sprintf($format, $header, $content);
			
		// SIDEBAR block withOUT header
		} else {
			$format = '
			
				<div class="art-block">
					<div class="art-block-body">
						<div class="art-blockcontent">
							<div class="art-blockcontent-body">
								<!-- block-content -->
								%s
								<!-- /block-content -->                                    
								<div class="cleared"></div>
							</div>
						</div>
						<div class="cleared"></div>
					</div>
				</div>
			
			';	
			
			$return = sprintf($format, $content);
		}
		
		return $return;
	}
	
	function sidebarVmenu($menuList) {
		$format = '
		
			<div class="art-vmenublock">
				<div class="art-vmenublock-body">
					<div class="art-vmenublockcontent">
						<div class="art-vmenublockcontent-body">
							<ul class="art-vmenu">
								%s
							</ul>
							<div class="cleared"></div>
						</div>
					</div>
					<div class="cleared"></div>
				</div>
			</div>
		
		';
		return sprintf($format, $menuList);
	}
	
	function sidebarVmenu_LI($href, $anchor, $target=null, $rel=null) {
		$args = "$target $rel";
		
		$format = '
			<li><a %s href="%s"><span class="l"></span><span class="r"></span><span class="t">%s</span></a></li>
		';
		return sprintf($format, $args, $href, $anchor);
	}

}

?>